import random
num=random.randint(500,5000)

count=0
for x in range(1,num):
    if x%2==0:
        count+=1

print(count)
